package cn.kgc.service;

import cn.kgc.dao.RepairMapper;
import cn.kgc.pojo.Repair;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service("repairService")
public class RepairServiceImpl implements RepairService{
    @Resource
    private RepairMapper repairMapper;
    @Override
    public List<Repair> queryRepairByDeviceId(int deviceId) {
        return repairMapper.queryRepairByDeviceId(deviceId);
    }

    @Override
    public boolean insertRepair(Repair repair) {
        boolean flag=false;
        int i=repairMapper.insertRepair(repair);
        if(i>0){
            flag=true;
        }
        return flag;
    }
}
